/*
 * Singularity Engine
 * Copyright (C) 2010 Vyacheslav Vorobyov, All rights reserved.
 * See LICENSE for full license information.
 */

/**
 * 
 */
package org.singularity.mapred.util;

/**
 * @author vjache
 *
 */
public class VDMEImpl<KT, VT> extends AbstractVDME<KT, VT> {

	private final Code _code;
	private final KT _key;

	/**
	 * @param aCode
	 * @param aValue
	 */
	public VDMEImpl(Code aCode, KT aKey, VT aValue) {
		super(aValue);
		_code = aCode;
		_key = aKey;
	}

	@Override
	public KT getKey() {
		return _key;
	}

	@Override
	public Code getCode() {
		return _code;
	}
}
